package com.cloudfun.campusshare.common.constant;

/**
 * Created by Huqin on 2020/3/3
 */
public enum ProductType {

    WASHING_MACHINE("洗衣机"),
    WASHING_SHOES_MACHINE("洗鞋机"),
    DRY_MACHINE("干衣机"),


    HAIR_DRYER("吹风机"),
    WATER_DISPENSER("饮水机"),
    HOT_WATER_MACHINE("热水器"),
    LIQUID_PUMP("加液器");

    private String desc;

    ProductType(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public static Boolean isCorrectType(String deviceType) {
        ProductType[] values = ProductType.values();
        for (ProductType productType : values) {
            if (productType.desc.equals(deviceType)) {
                return true;
            }
        }
        return false;
    }
}
